package com.bluefish.bltuan.action.admin;

import java.util.List;

import org.apache.struts2.rest.DefaultHttpHeaders;
import org.apache.struts2.rest.HttpHeaders;

import com.bluefish.bltuan.module.user.User;

public class CustomerAction extends AdminAction {

    /**
     * 
     */
    private static final long serialVersionUID = 3283849292664493716L;

    private User              user;

    private List<User>        users;

    public User getUser() {
        return user;
    }

    public List<User> getUsers() {
        return users;
    }

    @Override
    public HttpHeaders index() {
        this.users = this.userService.getAll(getPageIndex());
        return new DefaultHttpHeaders(INDEX).disableCaching();
    }

    @Override
    public HttpHeaders show() {
        this.user = this.userService.findById(getIntegerId());
        return new DefaultHttpHeaders(SHOW).disableCaching();
    }

    @Override
    public HttpHeaders create() {
        return null;
    }

    @Override
    public HttpHeaders editNew() {
        return null;
    }

    @Override
    public String update() {
        return null;
    }

    @Override
    public String edit() {
        return null;
    }

    @Override
    public String destroy() {
        return null;
    }

}
